﻿using LuckyShell.ShellOrders;
using LuckyShell.ShellValues;

namespace LuckyShell.Commands;

public class DeleteCommand(List<ShellValue> values) : Command(values)
{
    public override object Run(ref VariateManager manager)
    {
        var ids = Values.OfType<IdentifierValue>();
        foreach (var id in ids)
        {
            manager.Delete(id.IdentifierName);
        }
        return new VoidValue();
    }
}